notify test: Don't test object relying on dbus connections
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 6 May 2015 10:39:14 +0000 (12:39 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 8 May 2015 02:37:55 +0000 (22:37 -0400)
Don't test types that rely on a pre-existing dbus session bus.

https://bugzilla.gnome.org/show_bug.cgi?id=749009

testsuite/gtk/notify.c

index 002c207b6449b342edb863e554d7881029ee0301..1ae3ab6fc251739c4af16fcee18408047c9a5388 100644 (file)
@@ -403,6 +403,10 @@ test_type (gconstpointer data)
       g_type_is_a (type, GTK_TYPE_FILE_CHOOSER_WIDGET) ||
       g_type_is_a (type, GTK_TYPE_PLACES_SIDEBAR))
     return;
+
+  /* These rely on a d-bus session bus */
+  if (g_type_is_a (type, GTK_TYPE_MOUNT_OPERATION))
+    return;
  
   klass = g_type_class_ref (type);